package com.bupt.fmmall.service;

import com.bupt.fmmall.entity.SalesOrder;
import com.bupt.fmmall.vo.ResultVO;

import java.util.List;

public interface OrderService {
    //2.顾客购买商品后增加相应订单信息
    public ResultVO CusIncreaseOrder(String itemId,SalesOrder salesOrder);
    //顾客退款、确认收货等不同状态下修改订单状态
    public void changeOrderState(SalesOrder salesOrder);
    //商家查询属于自己的订单状态
    public List<SalesOrder> businessViewOrderStates(String supplierUserName);
    //1.顾客查询属于自己的订单状态
    public ResultVO CusViewOrderStates(String customerUserName,Integer orderStatusId);
    //管理员根据订单ID查询订单状态
    public SalesOrder adminViewOrderState(int orderId);

}
